Gateway Settings

← Back to Viewer

Register Gateway

curl "http://114.34.77.62:51002/api/v1/registergateway?serverip=0.0.0.0&serverport=50003"

Curl POST Sample — Send Log to Server

Single gateway:

curl -X POST https://gwlog.powerup.com.tw/api/logs/community_A \ -H "Content-Type: application/json" \ -d '{ "GatewayId": "6", "Meters": [ {"SmartMeterId":"33","PowerConn":"1","Power":"0","Degree":"11.26","Status":"1","Voltage":"110","Current":"0.0"} ] }'

Multiple meters:

curl -X POST https://gwlog.powerup.com.tw/api/logs/community_A \ -H "Content-Type: application/json" \ -d '{ "GatewayId": "6", "Meters": [ {"SmartMeterId":"33","PowerConn":"1","Power":"0","Degree":"11.26","Status":"1","Voltage":"110","Current":"0.0"}, {"SmartMeterId":"34","PowerConn":"1","Power":"1","Degree":"45.20","Status":"1","Voltage":"220","Current":"2.5"} ] }'

Replace community_A with your community ID. Timestamp is auto-generated (Asia/Taipei). Status: 0=Offline, 1=Online, 2=Warning.