ephemeris_ziwei 1.0.0-beta.6 copy "ephemeris_ziwei: ^1.0.0-beta.6" to clipboard
ephemeris_ziwei: ^1.0.0-beta.6 copied to clipboard

Ziwei Doushu (紫微斗数) extension bindings for the Taiyin ephemeris.

example/ephemeris_ziwei_example.dart

import 'package:ephemeris/ephemeris.dart';
import 'package:ephemeris_ziwei/ephemeris_ziwei.dart';

void main() {
  final context = Ephemeris.open().createContext();
  final ziwei = context.ziwei;
  try {
    final chart = ziwei
        .calculateLocal(
          AstroDateTime(2003, 3, 13, 14, 15),
          gender: ZiweiGender.male,
        )
        .value;
    try {
      print('Bureau: ${chart.anchors.bureau}');
      print('Ziwei branch: ${chart.anchors.ziwei}');
    } finally {
      chart.close();
    }
  } finally {
    ziwei.close();
    context.close();
  }
}
0
likes
160
points
386
downloads

Documentation

API reference

Publisher

verified publisherredsc1.com

Weekly Downloads

Ziwei Doushu (紫微斗数) extension bindings for the Taiyin ephemeris.

Repository (GitHub)
View/report issues

Topics

#ziwei-doushu #astrology #chinese-calendar #ephemeris #astronomy

License

MPL-2.0 (license)

Dependencies

ephemeris, ffi

More

Packages that depend on ephemeris_ziwei