@ca-plant-list/ca-plant-list 0.4.15 → 0.4.17

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -25,3 +25,27 @@ node scripts/build-ebook.js
25
25
 
26
26
  # ebook is at output/ebplants.epub
27
27
  ```
28
+
29
+ ## Usage
30
+
31
+ ```zsh
32
+ npm i --save @ca-plant-list/ca-plant-list
33
+ ```
34
+
35
+ ### Customizing Photos
36
+
37
+ ca-plant-list loads photos of plants from iNat and maintains lists of photos of all the plants it knows about from both licensed iNat taxon photos and licensed iNat observation photos. If you want to customize the photos that appear on your site, you can add a file of iNat photo data to your local setup. This package provides some tools for doing so. For example, if you wanted to use photos from observations from Alameda and Contra Costa Counties, you could do this:
38
+
39
+ ```zsh
40
+ npx inatobsphotos -q "place_id=845,1527"
41
+ ```
42
+
43
+ That will create `data/inatphotos.csv` in your repo, populated by photos from verifiable observations of the taxa in data/taxa.csv from the place IDs identified in the `-q` param. It chooses from the most-faved observations with the "CC BY" or "CC BY-NC" licenses, or the CC0 declaration.
44
+
45
+ If you want to load from iNat taxon photos instead, you can do
46
+
47
+ ```zsh
48
+ npx inattaxonphotos
49
+ ```
50
+
51
+ The only reason to do that would be to get more recently-updated iNat taxon photos than ca-plant-list knows about.