Back to Smartcitizen.me

Reading and/or writing data to other platform

Hi Team,

We are new to SCK. In our project we’ve been using Sensor.Community platform, and we were wondering if it’s possible for the new SCK 2.3 sensors to send their data to both platforms?

Thanks in advance!
Alfonso

Hi,

There are many ways to do this, but as part of CitiObs it will need to pass by Smart Citizen.

I leave this for reference:

  1. You can change the mqttsrv in the device to point to a different mqtt broker
  2. You can enable forwarding on the platform (SmartCitizen API Reference). This is the mechanism used to forward data as part of the CitiObs project
  3. You can use an additional script like this one: Add script for republishing MQTT data to public server by pylonsoft · Pull Request #427 · fablabbcn/smartcitizen-api · GitHub

In your particular case, I’d suggest (2) is the best option, and subscribe to the stream that you generate as part of CitiObs.