Raspberry NetworkTables

I use Raspberry pi 4 to detect hexagon with code writed in Python. Everything is done but I can’t send data from it to Network Tables . When I look in shuffleboard and networktables there no data from raspberry . What should I put in Python code or smth on roborio Java code ?

Checkout PyNetworkTable from the RobotPy project.

Or use the FRC Vision Pi image on your pi and integrate your processing in one of the provided application example.

1 Like

See the pynetworktables troubleshooting guide: https://robotpy.readthedocs.io/en/stable/troubleshooting.html#pynetworktables

I got
NetworkTables.initialize(server=‘10.75.70.2’)
sd = NetworkTables.getTable(“SmartDashboard”)
sd = putNumber(“roborio” ,1)
And that don’t put data on Network Tables

That last line doesn’t look correct, it should be something like sd.putNumber("roborio", 5). Can you link us to your code?

Does the console show that it connected to the roborio (refer to the troubleshooting guide). If not, it’s definitely not going to work.