Code Monkey home page Code Monkey logo

hertz-feed's Introduction

hertz-feed

This is the Hertz feed script I use.

Since I have not kept up with the changes made from cm-steem's initial reference script release I didn't want to clone and issue a pull request so as not to disrupt the flow of his changes.

This version differs mainly with additions for:

  • added logging to file
  • removed unused imports
  • inline initializing of the wallet so this program stands alone (eliminates need for external program)
  • uses Python-BitShares lib ability to automatically select an API connection from a list
  • no longer requires an external timer or systemd to publish feeds, just set FREQ to interval desired

hertz-feed's People

Stargazers

R avatar

Watchers

James Cloos avatar

hertz-feed's Issues

Current timestamp timezone definition

I remembered that when testing the script in Google Colab, python couldn't retrieve a default timezone from the local environment (despite my server's python environment doing so), so perhaps try the following:

Please try changing line 64

hertz_current_timestamp = pendulum.now().timestamp() # Current timestamp for reference within the hertz script

To the following:

tz = pendulum.timezone('UTC') # Timezone needs defined
hertz_current_timestamp = pendulum.now(tz).timestamp() # Current timestamp for reference within the hertz script

This will explicitly specify UTC as the timezone required for the current timestamp generation.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.