How to send the data from server to device in traccar? - traccar

Traccar is Modern GPS Tracking Platform and Open Source.
https://www.traccar.org/source-code/
I send the data into device by SMS for Device has IMEI.
I want to know how to send the data from server to device in other way

There is a button in the web app that allows you to send commands from the server to the device. Note that to send a command via a network connection, you need the device to be online.

Related

How to use Google Calendar's watch method inside a Chrome Extension without a server

In my Chrome extension is it possible to use Google Calendar's API watch method to receive push notifications instead of pollling without hosting my own server?
Can Firebase/FCM or chrome.gcm provide a solution? cloud based perhaps?
You can avoid the long polling but you'd still have to host a server even for the FCM.
I'd suggest you;
Go with Heroku, set up a free NodeJS dyno for your server. You can use the free MongoDB addon as your DB. Use the guide here to setup the server.
Setup FCM client in your extension using the guide here. Request the notification permission and get token on install or if you have a login system in your extension, after user has authorized. Send the token to your server and save in DB against that user's id or any other unique id that you can track from Calendar notification.
Use the Heroku app URL as target in Watch API. So all the notifications will be delivered to your Heroku instance.
When a notification is received from Calendar API;
Use any form of id in that notification and find the user's device/FCM token from DB.
Use that token as to and send message to that device. Handle the message on device as you want.
Calendar API -> Heroku Server -> FCM Server -> User Device
Means no need for 'long polling'. Your notifications will be delivered in realtime. Depending on the usage, you could also keep the Heroku instance free.

Windows Phone Push Notifications without a web service

I'm planning to develop windows phone app which can send my PC clipboard to the phone. I want to use push notifications for this. I found this paragraph on the msdn windows phone documentation library
After your Windows Phone client app has registered for notifications, you can send notifications to the app. Typically, this is done with a web service that keeps a collection of URIs to send notifications to, but it also can be done with any app that can send messages to the Microsoft Push Notification Service.
This seems to imply that I don't need to set up a web service. Is there some way I can send push notifications directly from my app to MPNS?
Yes, your desktop app can communicate directly with MPNS.
Use the same code as for the web service.

Start a local program from Chrome/Chromium browser

What are the options for executing a local client-side program directly from Chrome/Chromium?
Here's the criteria:
ease of installation
cross-platform support
control over security (no other than the specified program can be
executed)
Currently, I can think of three options
write a Chrome plugin
clients run a local web server
a Java Applet
Are there any other options? The client side runs Javascript and is accessing a RESTful API to receive the data. Or maybe a way to directly execute a local program with the user's consent from Chrome?

Mobile HTML5 API integration support

Would mobile HTML5 support the following, and if not, why?
Device connected to the net
App loaded
App calls remote API and responds to request for API credentials
App receives session token
App requests data from remote API using session token
App pushes data to local database and screen
App closed
Device disconnected from net
App loaded
App loads data from local database
User inputs data which is added to the local database
App closed
Device connected to net
App loaded
App sync's remote/local data
App closed
Device connected to net
App closed
App push notifications enabled in device settings
Push notification sent to device from remote server
Native device prompt displayed for push notification
Maybe this will get you going on the right path? http://mobilehtml5.org/
There's no HTML5 feature called "push notification" nor, as far as I know, any way to create native notifications in iOS or Android from the browser. So right off the bat, that's going to be a tough one.

USB Token for autentication in website form

I have a website with HTML login form I want to use USB device as token to login into my website.
How can I use USB device for authentication and login via USB flash memory.
Is it possible to copy something like certificate on USB and when I connect it to my computer its automatically log into Website.
Thank you
Have a look at the yubikey, a good and inexpensive usb-token (http://www.yubico.com/yubikey).
Yubikeys register als usb keyboard, and because of that work on every system (that support usb keyboards) without the installation of any device drivers.
You can find many examples online how to use their one-time-key authentification service with php, ruby-on-rails or whatever language you use for your webpage.
If your system isn't connected to the internet you can still use the static key that the yubikey also can generate.