Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

81 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CTT Sensor Station Hardware Access HTTP Server

Set up with babel transpile for ECMA Script functionality.

Install Dependencies

npm install

Auto babel transpile files on save

npm run compile

Let this service run in the background. Each time a source file is saved, it is transpiled.

Debug

VS Code

Integrated debugging. Just run the debugger from the project. F5

Chrome Dev Tools

Establish an SSH tunnel from your local machine to the target machine: SSH Tunnel

ssh -L 9221:localhost:9229 pi@192.168.X.XX

Open Chrome Dev Tool Device Inspector chrome://inspect/#devices

Api Testing

curl localhost:3000/usb && echo ''

[{"name":"sda1","fs_type":"vfat","uuid":"0B06-2431"}]

curl localhost:3000/sensor/voltages && echo ''

{"battery":"11.94","solar":"0.00","rtc":"3.25"}

curl localhost:3000/modem && echo ''

{"signal":"-75, ?","imsi":"310260859158404","imei":"866834040905460","sim":"8901260852391584042","info":"Quectel EC25","creg":"Home","carrier":"T-Mobile,LTE","ok":"AT"}

About

HTTP server for accessing and controlling Sensor Station hardware / peripherals.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages