Projet de remplacement du "RPiPasserelle" d'Otec.
Ви не можете вибрати більше 25 тем Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

test_variable_values.sql 1.0KB

123456789101112131415161718192021
  1. INSERT INTO var_value (type, address, value, time) VALUES
  2. ('A', 10, 42, strftime('%s', 'now')),
  3. ('A', 11, 65530, strftime('%s', 'now')),
  4. ('A', 12, 32000, strftime('%s', 'now')),
  5. ('A', 13, 4200, strftime('%s', 'now')),
  6. ('A', 14, 42000, strftime('%s', 'now')),
  7. ('A', 15, 10024, strftime('%s', 'now')),
  8. ('A', 16, 24000, strftime('%s', datetime('now', '-1 hours'))),
  9. ('A', 17, 36000, strftime('%s', datetime('now', '-1 days'))),
  10. ('I', 5002, 101, strftime('%s', datetime('now'))),
  11. ('I', 5011, 24, strftime('%s', datetime('now'))),
  12. ('I', 5010, 0, strftime('%s', datetime('now', '-2 days'))),
  13. ('I', 5010, 20, strftime('%s', datetime('now', '-1 hours'))),
  14. ('I', 5010, 42, strftime('%s', datetime('now'))),
  15. ('D', 10, 1, strftime('%s', datetime('now'))),
  16. ('D', 11, 1, strftime('%s', datetime('now'))),
  17. ('D', 12, 0, strftime('%s', datetime('now'))),
  18. ('D', 13, 1, strftime('%s', datetime('now'))),
  19. ('D', 14, 1, strftime('%s', datetime('now'))),
  20. ('D', 10, 1, strftime('%s', datetime('now', '-1 days'))),
  21. ('D', 10, 0, strftime('%s', datetime('now', '-2 days')));