You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
CREATE USER "homenvi-collector" WITH PASSWORD 'xxxx';
GRANT WRITE ON homenvi TO "homenvi-collector";
2.Retention & continuous query
-- 数据保存策略(Retention Policies)
CREATE RETENTION POLICY "homenvi_rp"ON"homenvi" DURATION 30d REPLICATION 1 DEFAULT
-- 连续查询(continuous queries)
CREATE CONTINUOUS QUERY collections_cq_1h ON homenvi BEGINSELECT identifier,mean(humidity),mean(celsius),mean(fahrenheit),mean(heatIndexCelsius),mean(heatIndexFahrenheit) INTO collections_1h FROM collections GROUP BY identifier,time(1h) END
3.verify
login
influx -username homenvi-collector -password xxxx
verify: write
USE homenvi;
INSERT collections,identifier=HomenviCollectorAlpha humidity=66.40,celsius=22.60,fahrenheit=72.68,heatIndexCelsius=22.65,heatIndexFahrenheit=72.77;