糖果实验室杂货铺

Candy Lab

HoneyMap的hpfeeds-cleint命令行使用方法

2 years ago 2

作者:糖果

hpfeeds-client是一个Python写的客户端程序。

第一种是在世界地图上,点亮一个点:

1
hpfeeds-client --host localhost  -p 10000 -i honeymap -s cfdd6a68be69464666ae60b66dae69f6 -c geoloc.events publish "{countrycode:'NA', latitude:37.7749, longitude:-122.4194, city:'San Francisco'}"

另一种是在世界地图上,点亮二个点:

1
2
hpfeeds-client --host localhost  -p 10000 -i geoloc -s cfdd6a68be69464666ae60b66dae69f6 -c geoloc.events publish 
'{"countrycode":"NA", "latitude":37.7749, "longitude":-122.4194, "city":"San Francisco","countrycode2":"NA", "latitude2":37.7749, "longitude2":50.4194, "city2":"Bei Jing"}'

糖果实验室

Openresty中文编程网
IKBC经典机械键盘
机械键盘领券优惠购买

Comments

There are 2 Comments to "HoneyMap的hpfeeds-cleint命令行使用方法"

  • @hahadaxia http://lua.ren/topic/394/moonscript%E5%A6%82%E4%BD%95%E6%98%BE%E7%A4%BA%E5%A4%8D%E9%80%89%E6%A1%86

    看这个

  • hahadaxia says:
    1 year ago

    请问点亮HoneyMap 需要在mhn中配置么?怎么配置?

Write a Comment