Server

WARNING

Please make sure you have setup at least one Source, Link and Target for sparky so it can relay data to the cloud. If you're missing any of these components, no data will be sent to your dashboard.

The server is where sparky works really hard to keep your data uploading to the cloud. By installing the server locally you can ensure that sparky will resume if your hardware restarts. You can also preview all your connections and data flow before starting the server.

To see the platform-specific list of commands for the server run:

sparky server --commands
1

To test your server and to try sending data to your dashboard run:

sparky server
1

You should start seeing data arrive in your dashboardopen in new window within minutes!

Background Server

If you would like to run sparky in the background as a service then you'll need to install the service on your machine. This can be done very easily using the Sparky CLI.

Benefits of running the service:

  • It will continue to run on machine reboot
  • You can exit the terminal while service is running
sparky server install # install the service
sparky server start # starts the service
sparky server stop # stops the service 
sparky server uninstall # removes the service from your system
1
2
3
4

WARNING

These commands are platform specific. You can see how to manage your service on your specific machine by running the following command in your terminal.

sparky server --commands
1

Debugging Your Server

If you're running the service in the background you can view the error log through your syslog. In most cases it can be found at /var/log/syslog

You can also try running the terminal version of sparky to see the info logs and errors in the standard output.

sparky server
1
Last Updated: 3/27/2022, 4:26:47 AM
Contributors: Jonathan Reyes