Skip to content

highTowerSU/alarm-node-infobeamer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Example on how to use JSON config values

Import this package into your info-beamer account.

Import

Updating is easy:

curl -u:$API_KEY https://info-beamer.com/api/v1/setup/$SETUP_ID -d 'config={"automated":{"config_value1":{"foo":"bar"}}}&mode=update'

(Note: You shouldn't use raw curl for the API as the arguments to config should be urlencoded. Use a propery HTTP request library in your language of choice to do this correctly.)

By specifying the mode=update parameter, the above call only changes the config_value1 value in the automated subdirectory. The user made settings in the top-level node remain unchanged. If you have multiple json types in your node.json, like in this example, you can of course also modify them all at once with a single HTTP call:

curl ... 'config={"automated":{"config_value1":{"foo":"bar"},"config_value2": 1234}}&mode=update'

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages