Company
Date Published
Author
David G. Simmons
Word count
1118
Language
English
Hacker News points
None

Summary

The author of the article is revisiting their previous blog post on building a Telegraf plugin for beginners and has made significant improvements by expanding its functionality to parse multiple values from the JSON data sent by a Particle device, reducing code size by about 80% due to using built-in calls to the Particle Cloud. The revised plugin now handles more complicated JSON structures by creating a "Dummy" structure that can be unmarshaled into and then further processed into a new structure with the desired fields and values. The plugin also enables seamless transition of devices from one database to another without requiring manual data migration, making it suitable for various Particle projects.