Can I route information from one notecard to another through Notehub?

If I want to collect data with one notecard and then send it to another, can I do it using Notehub without sending it to the cloud? If so, is there an example of this somewhere? In other words, I’m trying to avoid sending the data to the cloud and just wish to send it to a dedicated raspberry pi via an attached notecard.

Thanks

Hey @sockhopper,

Notecard is designed to communicate with Notehub and Notehub only. There’s some background on that here.

Out of curiosity, why are you trying to avoid using the cloud? With Notecard you could use either environment variables or DB Notefiles—both of which make it pretty trivial to synchronize data or variables between devices.

TJ

2 Likes

Hi TJ,
I’m not trying to avoid the cloud… Just trying to avoid the learning and cost overhead of a third party service. It makes sense that I have to go through notehub, but was wondering if I could redirect information back to another device without going to azure or aws or some other service. I’m somewhat limited in my capabilities, but I don’t have a ton of time to learn new platforms. I am pretty good at programming in Python and other languages, though, so it would be fairly easy for me to parse information forwarded to another micro. I might not be making sense here, because my understanding of notecard is basically at the tutorial level.
Thanks.

Got it. I definitely understand not wanting to add additional services.

When using Blues, the happy path is using Notehub as the home for your sharable state. For example, suppose you have a fleet of temperature-monitoring Notecard-based devices. In Notehub you could have environment variables defined for your devices’ reading_interval, max_temp, min_temp, etc, and when you change those values—in the Notehub UI or through the Notehub API)—Notehub would push those changes down to each device. Understanding Environment Variables.

If you tell me a bit more about what you’re trying to share between devices I might be able to offer other suggestions.

TJ

1 Like

Thanks, TJ. This is very helpful. I’m going to read a bit more about the environment variables. I’m not sure we will have to push information from one of our devices to another one, yet, but I think that this method will meet our needs if we do.
Cheers.

1 Like