How does Arduino(Sigfox) send informationto Mobile application - javascript

i am a newbie in Javascript and i have a question regarding passing of information from Arduino all the way to a mobile application.
So first of all, in the mobile app that i will be creating will only consist of Javascript, html and css.
The things that i will be using:
-Arduino Device
-Sigfox add-on
-cPanel
-Mobile app
I will be creating an IOT device with arduino and a Sigfox add-on (Which passes a small byte of information to their Sigfox server) But the question is, how do i get sigfox to send to cPanel and how to get cPanel to send to mobile app?
*I do not need any code.. but just some guidance of how it works from getting Arduino device all the way to my javascript mobile app.. Thank you

I documented a project that did what you needed.
In this project, I hooked up a button to my Arudino UNO. When the button is pressed, it will send a message through the Sigfox backend to my virtual server, and then finally as a notification to my mobile phone.
Take a look at it here, am happy to assist further should you require any assistance.
https://jacksonng.org/zoe-helper-sigfox-sos-device-part-1

Related

How do you stream your screen via python and nodejs (both with socket.io) to a webpage

I'm working on a website that turns my ipad into a drawing tablet for my laptop.
Most of the program is done, but I don't know how I'm gonna share my screen with my ipad.
Does one of you guys know how to do that?
If so then please let me know how
for the website I'm using nodejs & socket.io (html, css and js) and for actually moving the mouse I'm using python (pynput, python-socketio)
Well,
you can capture 24 screenshots a second with PyAutoGUI and then send the data through a socket connection(see this and this)...
But i don't see the reason to do so. If you want to use your ipad as a drawing tablet you also need to sync the input and the latency will be substantial.
You will be better off by just using teamviewer or some other remote control app. Those services are much better at handling latency and input.
Sorry, but it will save you a ton of work and pain.

Communicating with PHP from an android app without internet?

I have made a web page and i am running it on a local host using the xampp server. In this web page I have a canvas that draws a line between two point. I read these points from a locally available csv file that I have generated. I would like to make an android application, where there is a provision to enter two numbers. I want this android application to make a csv file and save it on my computer so that I can access this file using my javascript.
Note: can I pass these values via an usb connected between the mobile and computer so that I can make a csv file locally in my computer? I want all of this to happen without the requirement of internet connection.
PS: I am newbie to android. If the above is possible, then please brief on how to approach this problem.
If you have a XAMP server all you need to do is connect the android device to the same network/router. There you can talk via HTTP methods to the apache server. You will just need to provide the ip address to the android app.
In the router you can set a static ip address for the mac address of your computer, so every time it connects to the router it always get the same IP and you dont need to input it again on the android app.

Websocket server and Mobile clients

I have a Tomcat based server which serves as a Websocket end point (used javax.websocket) for my web based JS app. I am serving out json based data (queried from my database) via the web sockets. I am not using websockets to serve out HTML/JS pages.
Now we are building a native mobile app of our JS web app. There doesnt seem to be good native support for Websockets on Android and ios.
I would like to keep the server code base common to both JS client and the mobile client.
What would be your suggestion for such a situation? Write a different server for mobile clients?
I found this http://www.elabs.se/blog/66-using-websockets-in-native-ios-and-android-apps. They suggest SocketRocket for ios and https://github.com/TooTallNate/Java-WebSocket for Android.
I have never heard of these people / companies. Not sure of their antecedents and if their apps are bug free.
Any suggestions would be welcome.
I'm not sure if this is the answer you are looking for, but I tried this once, and decided to use a webpage that uses the websocket. Each app will display a webview accessing the page. All recent iOS SDK versions support this, but only the newer (4.4+) Androids will.
If you do not want to use webviews, I recommend Tavendo Autobahn for Android. I had a problem that my server's websocket would disconnect all the time. I had to implement a reconnection routine every couple of seconds on the app.
Hope it helps :)
I'm using this library on android for websockets https://github.com/codebutler/android-websockets
Works good with Spring WebSockets.
Sorry for messy answer, I'm in hurry, write in comments if u have questions

Native web-app detecting phone activity

I’m building a web site which will also work as a native web-app using mostly client side technologies.
I was wondering if there is a way to detect a mobile activity using javascript or any other client side trick?
My goal is to be able to stop playing a video while the user answers his call or responds to his text message.
If not through client side then is there a way to do this without having the user install my app?
Thanks a bunch
Moshe S.

IronJS / Twilio Browser Soft Phone

I'm creating a Fiddler extension that is simplifying my interaction with Twilio during development. I'm about to release it to the wild, but I would like one more feature before I do so.
I'm able to return the various phone numbers on my Twilio Account, and list them with the various URLS that are required.
I would like to select on of the numbers, and "Click-To-Test" whick will dial the selected phone number. I would then like to interact with my Twilio service via my computer rather than picking up a phone.. I should be able listen to the voice prompts, and interact by dialing 1, 2, 3 etc. when prompted.
Twilio offers this JavaScript library here (Twilio in the Browser), and give an example here via Azure (Twilio in Javascript Application), or here via MVC (Hello Monkey Client)
All of which leverage a Javascript library which creates a Twilio Device on the client side. I'm NOT a Javascript guy (yet, but it looks like that's next on my every growing learn-this-technology list), but I have to think that the same functionality could be implmented in C#.
I've attempted to host the device in a browser control, but I'm not getting to far with it, and the integration still remains on how to pass a select item in C# to a executing Java Script library running in a browser.
I've also looked into IronJS run the JavaScript via the Dynamic Run Time, but I'm not sure if that will work in the end. The Twilio Library looks for a script tag in the web page, and hooks up several event handlers. Running the library in IronJS, causes it to fail as there is no web page, and my Java chops are not up to hacking this piece out.
My question is: Can't this Javascript Library be ported to C#, and create a full client that Twilio sees like the Javascript soft phone? I would think this would not only be helpful for me, but also for Win 8 dev, and Windows Phone 8 Dev as well.
I'm not a C# developer, I believe hosting the JS library in a WebBrowser control seems the way to go (at least much easier than porting the library to C#).
According to MSDN, you can use the Document property to call JS code from your application. For example, if you had this defined in your web page:
function test(message) {
alert(message);
}
You can call it from your application:
webBrowser1.Document.InvokeScript("test",
new String[] { "called from client code" });
Unfortunately, there's not a straightforward path to using Twilio Client in Windows 8 or other Windows desktop apps. I will pass along this feedback that it would be great to have VoIP functionality through Twilio for Windows 8 apps.
The Twilio C# helper library should help with this.
https://github.com/twilio/twilio-csharp
See the blog post below for an example application:
http://www.twilio.com/blog/2012/02/twilio-for-net-developers-part-5-twilio-client-mvc-and-webmatrix-helper-libraries.html
You also linked earlier to a Twilio Client C# code example:
http://www.twilio.com/docs/quickstart/csharp/client/hello-monkey
All of the Twilio Quickstarts can be viewed in C# using the language drop down in the upper right.

Categories

Resources