I’m sorry if this isn’t the place to ask this, I also asked over at [email protected].

So what I want to do is this: Two RasPis are at different locations. They’re on different networks but have internet access. Pressing a button on one of the Pis turns on an LED over at the other Pi via GPIO. How can I make the communication work? My first thought was Telegram bots as I’m familiar with those for notifications but you can’t have Telegram bots communicate with each other, sadly. Is there a good (and secure) solution to this? Preferably using Python code and without continuous costs like server hosting, etc?

Thanks!

  • CameronDev@programming.dev
    link
    fedilink
    arrow-up
    7
    ·
    8 months ago

    The general problem your describing is Command and Control, or C2. Tailscale/wireguard/vpn is probably the best solution, but if you want to get weird with it, any site that allows user submitted content can be used.

    For example, make one pi post to twitter, and the other pi can poll twitter. Substitute twitter with pastebin/lemmy/signal/instagram.