GoogleCloudPlatform / GoogleCloudPlatform/training-data-analyst

readme to update in courses/streaming/publish/send_sensor_data.py

Open
#1,327 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Jupyter Notebook
Stars
8.6k
Forks
6.1k
Avg merge
4h 44m
Merged PRs (30d)
2

Description

in
https://github.com/GoogleCloudPlatform/training-data-analyst/blob/master/courses/streaming/publish/send_sensor_data.py

```
pip install google-cloud-pubsub==0.27.0
```

not working
worked with
use
```
pip install google-cloud-pubsub==1.2.0
```

````
(xxx) student_01_0cfd898ebfd7@cloudshell:~/training-data-analyst/courses/streaming/publish$ ./send_sensor_data.py --speedFactor=60 --project qwiklabs-gcp-01-f3db1dcc37a9
WARNING: No project ID could be determined. Consider running `gcloud config set project` or setting the GOOGLE_CLOUD_PROJECT environment variable
INFO: Reusing pub/sub topic sandiego
INFO: Sending sensor data from 2008-11-01 00:00:00
INFO: Publishing 477 events from 2008-11-01 00:00:00
INFO: Sleeping 5.0 seconds
INFO: Publishing 477 events from 2008-11-01 00:05:00
INFO: Sleeping 5.0 seconds
INFO: Publishing 477 events from 2008-11-01 00:10:00
INFO: Sleeping 5.0 seconds

````

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.