tatjam / tatjam.github.io

A extremely simple C++ site-generator adapted for my development blog
2 stars 1 forks source link

Additional information on label? #2

Open CR45HING opened 2 weeks ago

CR45HING commented 2 weeks ago

It would be awesome if the generator could also add NFPA 704 fire diamonds.

Also some of the more important physical properties like:

tatjam commented 1 week ago

I'm going to check if PubChem provides that data, probably true for most chemicals

tatjam commented 6 days ago

It actually seems that the API does not expose this values directly, only these are available: https://pubchem.ncbi.nlm.nih.gov/docs/pug-rest#section=Compound-Property-Tables

Regardless, i've found this code (https://github.com/mawansui/pubchemprops) that achieves it via some more "low-level" scrapping. Going to try to figure out how it works!

tatjam commented 6 days ago

Sadly NFPA fire diamonds are a bit trickier to get as they don't seem to be provided by Pubchem at all. I can add a custom option so that you can set the values manually. Should be fairly straightforward.

tatjam commented 6 days ago

image

Initial implementation of NFPA symbols. It may have some formatting problems on some browsers. Settings can be set on this menu:

image