webthingsio / curl-examples Goto Github PK
View Code? Open in Web Editor NEWExamples of using the gateway API using curl
License: Mozilla Public License 2.0
Examples of using the gateway API using curl
License: Mozilla Public License 2.0
I was writing an application that used the set-parameter.sh program to toggle light "on" parameter. In my case, I'm using GE Z-Wave switches which work ok. My light bulb burn't out. When the next automated set-parameter.sh command executed to turn the light off (on=false), the set-parameter.sh program hung indefinately requiring me to manually kill the program. Manually executing set-parameter.sh also hung.
Curl commands should include both a --connect-timeout and --max-time options.
curl --connect-timeout 5 --max-time 60 example.com
I know it's easy to modify the programs and I've already updated my local copy. You may wish to do the same if/when you get bored.
The minute I replaced the light bulb it started working. Strange.
There is also a problem in the IOT GW and/or Z-Wave code which, in this case, repeatedly hung attempting to communicat with a Z wave light switch connected to a lamp with a bad bulb. Will test the bad bulb later to see if it repeats.
As of January 1 2019, Mozilla requires that all GitHub projects include this CODE_OF_CONDUCT.md file in the project root. The file has two parts:
If you have any questions about this file, or Code of Conduct policies and procedures, please reach out to [email protected].
(Message COC001)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.