Spts Origin Script New -

-- New Origin script style local results = await all({ SPTS.fetch_async("sensor_01"), SPTS.fetch_async("sensor_02") }) for each in results do SPTS.process(each) end Execution time drops to ~110ms total because the fetches overlap. While the update is largely stable, early adopters have reported three common issues. Here is how to solve them:

wget https://cdn.spts.org/origin/scripts/new/origin_v4.lua -O /etc/spts/origin.lua Before activating the new script, maintain a fallback: spts origin script new

-- Legacy Origin style local data = SPTS.fetch("sensor_01") SPTS.process(data) SPTS.fetch("sensor_02") SPTS.process(data) This took approximately 200ms per fetch in sequence. -- New Origin script style local results = await all({ SPTS

Avoid random GitHub gists. The official origin script is distributed via the SPTS Foundation’s CDN. Use the verified command: spts origin script new