Unable to add the ipp network printer to cup server - cups

I would like to add the network printer to cups server using http call ( printer_host_name, port).
I couldn't find the way to add the printer to cupserver from cups api documentation.
Please share the cup api which allows to add ipp network printer into cups and share the different approaches to connect the printer.
Currently, I have connecting the cup server with cups4j library through java.
https://github.com/harwey/cups4j/issues/68 https://github.com/OpenPrinting/cups/issues/514 https://github.com/gmuth/ipp-client-kotlin/issues/10
Additional Links :
https://github.com/OpenPrinting/cups/issues/514
https://github.com/OpenPrinting/cups/issues/516
Thanks
Currently, I have connecting the cup server with cups4j library through java..

Related

Use Amazon Alexa to switch on Hue Light and switch off Wemo plug simultaneously

I have a Philips Hue light dimmable bulb for a night light and a regular floor lamp connected to a Belkin Mini WeMo smart plug. I have added both as devices in the Alexa app and can control them individually, or together as part of a group. But I need their states to be mutually exlusive, i.e. when I say "switch on night light", I want the Hue light bulb to turn on and the WeMo controlled floor lamp to turn off. And vice versa. This sounds like a typical "scene", but the Alexa App does not seem to facilitate such an option. What is a good way to achieve this type of control?
There is a great example and write up here about how to control a WEMO device using an ESP8266. It includes code for your perusal and writing your own control.
Hope it helps.
Both the Philips Hue Bridge and the Wemo have an API. You can create a Hue Bridge Emulator, and create a virtual bulb there with a unique name. When Echo sends the command to turn on your virtual bulb, you can then turn one bulb off, and the other one on. And when you tell Echo to turn the bulb off, you reverse the process.
I'm using my own Hue emulator to control my lights and my PC.
Simpler though might be just to setup a web server, and accept calls from IFTTT triggered by Echo. Your web server in the CGI script you write can then send commands to the WeMo light, and the Hue bridge.
So, for example, once you've registered a username on the Hue bridge, you can turn it on like this
PUT /api/username/lights/2/state
where "2" is the ID for the bulb in question, and send the JSON payload of
{{"on":true}}
I believe Wemo uses a REST api

Implementing RFID with an exisiting system using vb.net and a sql database

We are currently trying to implement RFID scanners into our process at my facility. We have many places they would be useful for automation but until now we have used vb.net code and human entry for most of everything. We have used some bar code scanners but that is really just mimicking key strokes. I understand how RFID works but making the RFID talk to my VB.net and SQL database is becoming quite complicated. I need to know either a middleware program that can initiate changes in our sql server, or some type of code in vb.net that will allow me to plug a scanner in and use it in conjunction with code. Can anyone point me in a direction or shoot me some freeware programs out there to do this?
A lot of that depends on what type of scanner you're using...for example...if you're using an AML scan gun (with keypad and display screen), then most of these are terminal emulation sessions..i.e. telnet or ssh connections to a server that simply run a application (perl, python, vb, etc). On the other hand...if you're using the $20 keyboard extension scanner that just 'scans'...then you're probably using that in conjunction with an app on a stand alone PC. The database interaction within the app is independent of scanner type...but how you deploy it...telnet, ssh, shared app will be dependent of the scanner employed. We use AML scan guns that essentially invoke a telnet session...running a perl script that does the logic/DB updates within the script...and looping back to 'main menu' until the session is ended...ie that shut it off or control c. Obviously there's a lot to go into...but I'd start with the type of gun (how much interaction is involved by the enduser)...and let that drive the design from there.

Silent print with multiple devices (chrome)

So I have this POS (running Windows Embedded POSReady 7 as OS) and I have this web app (I'm using PL/SQL, javascript) that will print documents and recipts. There will be two printers connected to the POS, one is a laser printer (for the documents) and the other is a thermic printer (for the recipts).
I want to use Google Chrome's --kiosk --kiosk-printing BUT I need to switch printers because of the situation I described before, is there a way to achieve this?
You can use a Chrome App to achieve this. You can connect to the USB and write PCL or image files directly to printer.
Our demo: https://github.com/GoogleChrome/chrome-extensions-samples/tree/main/apps/samples/usb-label-printer show how this can be achieved.
You do need to know the exact printer type you are connecting too and also write the device driver for it, but generally it is not to complex.

How to connect and send data to Bluetooth form AS3?

I need to connect and send data to Bluetooth from Action Script 3 (AS3)
if there is any idea I'll be glad for your help
Thanks in advance ,
Nice question!
Wiimotes connect/send data through bluetooth.
I had a quick look through the WiiFlashServer java source.
It uses a ServerSocket and it seems to send binary data to flash via
the Socket class.
You could either adapt some of that code to suit your needs, or build a Socket server in your language of choice and send the data to flash sockets.
HTH,
George

DIRECTOR "TCP/IP Socket sever/client"

Would Director be an option for creating a socket client?
My client needs to accept server commands; frame rate, start etc.
Director seems like it was made for controlling movies. I've got Director 11.5 at the office. Any lingo experts that could advise?
Interaction with client
SERVER==>XML PACKET==>CLIENT==>swf plays on given frame and duration
Links
http://www.adobe.com/support/director/multiuser.html
http://www.adobe.com/products/director/multiuser/
http://smbus.org/specs/
http://opensmus.sourceforge.net/
Just found this
http://www.director-online.com/buildArticle.php?id=1158
Director does not natively support creating socket connections.
There is an Xtra for communicating with servers using text connections, called the Multiuser Xtra. It doesn't provide a full suite of socket commands, but it will allow you to open a connection to an arbitrary server and send messages back and forth. It has two modes: one that uses just a raw text connection (similar to telnet, and would require you to essentially roll your own server), and one which talks to the "Shockwave Multiuser Server" via the proprietary SMUS protocol. The "Shockwave Multiuser Server" provides services like matchmaking, forwarding messages to groups, etc., but it has been de-supported by Adobe, so most Director developers, I'd wager, are skittish on basing any long-term projects on it. There are third-party alternatives available such as OpenSMUS, but you'd still be dependent on Adobe to continue supporting the Xtra.
If you want to continue down this path, I'd recommend going to the OpenSMUS site - there's a community and code samples available there.
Another possibility is to do your networking through a Flash object and embed the Flash object into Director. Since you're coming from a Flex/as3 background, apparently, that might be a better migration for you - you could do the networking stuff in Flash, and build the rest of your client in Director. This might be your best bet, especially if you already have some Flash-based infrastructure built for your project.